/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * GUIScramble.java
 *
 * Created on Apr 6, 2012, 7:25:03 PM
 */
package game;

/**
 *
 * @author Glasgow
 */
import javax.swing.*;
public class GUIScramble extends javax.swing.JFrame{
	ComputerAgent c0 = new ComputerAgent(20, 50, 50, 1);
	ComputerAgent c1 = new ComputerAgent(20, 50, 50, 2);
	ComputerAgent c2 = new ComputerAgent(20, 50, 50, 3);
	PlayerAgent p = new PlayerAgent(20);


	public  String decision, credit, potval;
	int creditInt, potvalint;    
	//char[] myArray = p.rack.returnString().toCharArray();

	char[] myArray = new char[]{'1','2','3','4','5'};

	public String getPotVal(){
		potvalint = (Round.getPot());                   
		return potval = Integer.toString(potvalint);
	}
	public String setPlayerCredit(){                   
		creditInt = (p.getCurrentBankRoll());
		return credit = Integer.toString(creditInt);
	}           
	public String setComputer0Credit(){                   
		creditInt = (c0.getCurrentBankRoll());
		return credit = Integer.toString(creditInt);
	}
	public String setComputer1Credit(){                   
		creditInt = (c1.getCurrentBankRoll());
		return credit = Integer.toString(creditInt);
	}
	public String setComputer2Credit(){                  
		creditInt = (c2.getCurrentBankRoll());
		return credit = Integer.toString(creditInt);
	}

	public int setAmtToBet(){
		return Integer.parseInt(AmtToBet.getText());
	}



	//        public  String getDecision(){
	//                return decision;
	//        }
	//        public int bet(){
	//                return Integer.parseInt(AmtToBet.getText());
	//        }

	/** Creates new form GUIScramble */
	public GUIScramble() {
		initComponents();
	}

	/** This method is called from within the constructor to
	 * initialize the form.
	 * WARNING: Do NOT modify this code. The content of this method is
	 * always regenerated by the Form Editor.
	 */
	@SuppressWarnings("unchecked")
	// <editor-fold defaultstate="collapsed" desc="Generated Code">
	private void initComponents() {

		jPanel1 = new javax.swing.JPanel();
		Player3Panel = new javax.swing.JPanel();
		Player3Label = new javax.swing.JLabel();
		Player3Credits = new javax.swing.JTextField();

		FlopPanel = new javax.swing.JPanel();
		FlopLetter1 = new javax.swing.JTextField();
		FlopLetter2 = new javax.swing.JTextField();
		FlopLetter3 = new javax.swing.JTextField();
		FlopLetter4 = new javax.swing.JTextField();
		FlopLetter5 = new javax.swing.JTextField();
		POT = new javax.swing.JTextField();
		Player5Panel = new javax.swing.JPanel();
		Player4Label = new javax.swing.JLabel();

		Player4Credits = new javax.swing.JTextField();
		Player2Panel = new javax.swing.JPanel();
		Player2Label = new javax.swing.JLabel();

		Player2Credits = new javax.swing.JTextField();
		Player1Panel = new javax.swing.JPanel();
		Raise = new javax.swing.JButton();
		Check = new javax.swing.JButton();
		Fold = new javax.swing.JButton();
		Player1Letter1 = new javax.swing.JTextField();
		Player1Letter2 = new javax.swing.JTextField();
		Player1Letter3 = new javax.swing.JTextField();
		WordToPlay = new javax.swing.JTextField();
		AmtToBet = new javax.swing.JTextField();
		Player1Credits = new javax.swing.JTextField();
		Player1Label = new javax.swing.JLabel();


		setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
		setBackground(new java.awt.Color(0, 204, 0));

		jPanel1.setBackground(new java.awt.Color(51, 204, 0));

		Player3Panel.setBackground(new java.awt.Color(51, 204, 0));

		Player3Label.setText("Player 3");

		Player3Credits.setText("Computer2 Credits: "+setComputer1Credit());
		Player1Credits.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				Player1CreditsActionPerformed(evt);
			}
		});


		javax.swing.GroupLayout Player3PanelLayout = new javax.swing.GroupLayout(Player3Panel);
		Player3Panel.setLayout(Player3PanelLayout);
		Player3PanelLayout.setHorizontalGroup(
				Player3PanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(Player3PanelLayout.createSequentialGroup()
						.addGap(53, 53, 53)
						.addComponent(Player3Credits, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
						.addGap(48, 48, 48)
						.addComponent(Player3Label)
						.addGap(42, 42, 42)

						.addContainerGap(71, Short.MAX_VALUE))
				);
		Player3PanelLayout.setVerticalGroup(
				Player3PanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(Player3PanelLayout.createSequentialGroup()
						.addGroup(Player3PanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
								.addComponent(Player3Credits, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
								.addComponent(Player3Label)
								)
								.addContainerGap(76, Short.MAX_VALUE))
				);

		FlopPanel.setBackground(new java.awt.Color(51, 204, 0));

		FlopLetter1.setText("Flop1: ");//+myArray[3]);
		FlopLetter1.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				FlopLetter1ActionPerformed(evt);
			}
		});

		FlopLetter2.setText("Flop2: ");//+myArray[4]);

		FlopLetter3.setText("Flop3: ");//+myArray[5]);

		FlopLetter4.setText("Flop4: ");//+myArray[6]);

		FlopLetter5.setText("Flop5: ");//+myArray[7]);

		POT.setText("Pot Value: "+getPotVal());

		javax.swing.GroupLayout FlopPanelLayout = new javax.swing.GroupLayout(FlopPanel);
		FlopPanel.setLayout(FlopPanelLayout);
		FlopPanelLayout.setHorizontalGroup(
				FlopPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(FlopPanelLayout.createSequentialGroup()
						.addContainerGap()
						.addComponent(FlopLetter1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
						.addGap(18, 18, 18)
						.addComponent(FlopLetter2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
						.addGap(18, 18, 18)
						.addGroup(FlopPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
								.addComponent(POT, javax.swing.GroupLayout.Alignment.TRAILING)
								.addComponent(FlopLetter3, javax.swing.GroupLayout.Alignment.TRAILING))
								.addGap(18, 18, 18)
								.addComponent(FlopLetter4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
								.addGap(18, 18, 18)
								.addComponent(FlopLetter5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
								.addContainerGap(15, Short.MAX_VALUE))
				);
		FlopPanelLayout.setVerticalGroup(
				FlopPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(FlopPanelLayout.createSequentialGroup()
						.addContainerGap()
						.addGroup(FlopPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
								.addComponent(FlopLetter1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
								.addComponent(FlopLetter2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
								.addComponent(FlopLetter3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
								.addComponent(FlopLetter4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
								.addComponent(FlopLetter5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
								.addGap(38, 38, 38)
								.addComponent(POT, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
								.addContainerGap(53, Short.MAX_VALUE))
				);

		Player5Panel.setBackground(new java.awt.Color(51, 204, 0));

		Player4Label.setText("Player 4");

		Player4Credits.setText("Computer3 Credits: "+setComputer2Credit());
		Player1Credits.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				Player1CreditsActionPerformed(evt);
			}
		});

		javax.swing.GroupLayout Player5PanelLayout = new javax.swing.GroupLayout(Player5Panel);
		Player5Panel.setLayout(Player5PanelLayout);
		Player5PanelLayout.setHorizontalGroup(
				Player5PanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(Player5PanelLayout.createSequentialGroup()
						.addGroup(Player5PanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
								.addComponent(Player4Credits, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
								)
								.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
								.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, Player5PanelLayout.createSequentialGroup()
										.addContainerGap(18, Short.MAX_VALUE)
										.addComponent(Player4Label)
										.addContainerGap())
				);
		Player5PanelLayout.setVerticalGroup(
				Player5PanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(Player5PanelLayout.createSequentialGroup()
						.addComponent(Player4Label)
						.addGap(18, 18, 18)
						.addGap(18, 18, 18)
						.addComponent(Player4Credits, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
						.addContainerGap(99, Short.MAX_VALUE))
				);

		Player2Panel.setBackground(new java.awt.Color(51, 204, 0));

		Player2Label.setText("Player 2");



		Player2Credits.setText("Computer1 Credits: "+setComputer0Credit());
		Player2Credits.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				Player1CreditsActionPerformed(evt);
			}
		});

		javax.swing.GroupLayout Player2PanelLayout = new javax.swing.GroupLayout(Player2Panel);
		Player2Panel.setLayout(Player2PanelLayout);
		Player2PanelLayout.setHorizontalGroup(
				Player2PanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(Player2PanelLayout.createSequentialGroup()
						.addGap(14, 14, 14)
						.addGroup(Player2PanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)

								.addComponent(Player2Label))
								.addContainerGap(12, Short.MAX_VALUE))
								.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, Player2PanelLayout.createSequentialGroup()
										.addContainerGap(33, Short.MAX_VALUE)
										.addComponent(Player2Credits, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
										.addContainerGap())
				);
		Player2PanelLayout.setVerticalGroup(
				Player2PanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(Player2PanelLayout.createSequentialGroup()
						.addContainerGap()
						.addComponent(Player2Label)
						.addGap(18, 18, 18)

						.addGap(18, 18, 18)
						.addComponent(Player2Credits, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
						.addContainerGap(79, Short.MAX_VALUE))
				);

		Player1Panel.setBackground(new java.awt.Color(51, 204, 0));

		Raise.setText("Raise");
		Raise.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				RaiseActionPerformed(evt);
			}
		});

		Check.setText("Check");
		Check.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				CheckActionPerformed(evt);
			}
		});

		Fold.setText("Fold");
		Fold.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				FoldActionPerformed(evt);
			}
		});


		//System.out.println(myArray[0]);
		Player1Letter1.setText("Letter1: " + myArray[0]);

		Player1Letter2.setText("Letter2: ");//+myArray[1]);
		Player1Letter2.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				Player1Letter2ActionPerformed(evt);
			}
		});

		Player1Letter3.setText("Letter3: ");//+myArray[2]);

		WordToPlay.setText("Enter your word: ");//+p.getWordInput());

		AmtToBet.setText("Amt to bet");
		AmtToBet.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				AmtToBetActionPerformed(evt);
			}
		});

		Player1Credits.setText("Player Credits: "+setPlayerCredit());
		Player1Credits.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				Player1CreditsActionPerformed(evt);
			}
		});

		Player1Label.setText("Player 1");



		javax.swing.GroupLayout Player1PanelLayout = new javax.swing.GroupLayout(Player1Panel);
		Player1Panel.setLayout(Player1PanelLayout);
		Player1PanelLayout.setHorizontalGroup(
				Player1PanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(Player1PanelLayout.createSequentialGroup()
						.addGap(37, 37, 37)
						.addGroup(Player1PanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
								.addComponent(AmtToBet, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
								.addComponent(Player1Credits, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
								.addGroup(Player1PanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
										.addGroup(Player1PanelLayout.createSequentialGroup()
												.addGap(68, 68, 68)
												.addGroup(Player1PanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
														.addComponent(WordToPlay, javax.swing.GroupLayout.PREFERRED_SIZE, 204, javax.swing.GroupLayout.PREFERRED_SIZE)
														.addGroup(Player1PanelLayout.createSequentialGroup()
																.addGroup(Player1PanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
																		.addComponent(Check)
																		.addComponent(Player1Letter1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
																		.addGap(18, 18, 18)
																		.addGroup(Player1PanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
																				.addComponent(Player1Letter2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
																				.addComponent(Raise))
																				.addGap(18, 18, 18)
																				.addGroup(Player1PanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
																						.addComponent(Player1Letter3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
																						.addComponent(Fold)))))
																						.addGroup(Player1PanelLayout.createSequentialGroup()
																								.addGap(124, 124, 124)
																								.addComponent(Player1Label)
																								.addGap(18, 18, 18)
																								))
																								.addContainerGap(186, Short.MAX_VALUE))
				);
		Player1PanelLayout.setVerticalGroup(
				Player1PanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(Player1PanelLayout.createSequentialGroup()
						.addGroup(Player1PanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
								.addGroup(Player1PanelLayout.createSequentialGroup()
										.addGap(11, 11, 11)
										.addGroup(Player1PanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
												.addComponent(Player1Label)
												)
												.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
												.addGroup(Player1PanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(Check)
														.addComponent(Fold)
														.addComponent(Raise))
														.addGap(18, 18, 18)
														.addGroup(Player1PanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
																.addComponent(Player1Letter1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
																.addComponent(Player1Letter2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
																.addComponent(Player1Letter3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
																.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 38, Short.MAX_VALUE)
																.addComponent(WordToPlay, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
																.addGroup(Player1PanelLayout.createSequentialGroup()
																		.addGap(31, 31, 31)
																		.addComponent(AmtToBet, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
																		.addGap(18, 18, 18)
																		.addComponent(Player1Credits, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
																		.addContainerGap())
				);

		javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
		jPanel1.setLayout(jPanel1Layout);
		jPanel1Layout.setHorizontalGroup(
				jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(jPanel1Layout.createSequentialGroup()
						.addGap(23, 23, 23)
						.addComponent(Player2Panel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
						.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
						.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
								.addGroup(jPanel1Layout.createSequentialGroup()
										.addGap(97, 97, 97)
										.addComponent(Player3Panel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
										.addGap(84, 84, 84))
										.addGroup(jPanel1Layout.createSequentialGroup()
												.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 16, Short.MAX_VALUE)
												.addComponent(FlopPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
												.addGap(101, 101, 101)))
												.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
												.addComponent(Player5Panel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
												.addGroup(jPanel1Layout.createSequentialGroup()
														.addGap(95, 95, 95)
														.addComponent(Player1Panel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
														.addContainerGap(52, Short.MAX_VALUE))
				);
		jPanel1Layout.setVerticalGroup(
				jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(jPanel1Layout.createSequentialGroup()
						.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
								.addGroup(jPanel1Layout.createSequentialGroup()
										.addGap(31, 31, 31)
										.addComponent(Player3Panel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
										.addGap(38, 38, 38)
										.addComponent(FlopPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
										.addGroup(jPanel1Layout.createSequentialGroup()
												.addGap(81, 81, 81)
												.addComponent(Player2Panel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
												.addGap(57, 57, 57))
												.addGroup(jPanel1Layout.createSequentialGroup()
														.addGap(79, 79, 79)
														.addComponent(Player5Panel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
														.addGap(50, 50, 50)))
														.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
														.addComponent(Player1Panel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
														.addGap(59, 59, 59))
				);

		javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
		getContentPane().setLayout(layout);
		layout.setHorizontalGroup(
				layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
				);
		layout.setVerticalGroup(
				layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
				);

		pack();
	}// </editor-fold>

	private void FlopLetter1ActionPerformed(java.awt.event.ActionEvent evt) {                                            


	}                                           

	private void Player1CreditsActionPerformed(java.awt.event.ActionEvent evt) {                                               
		// Player1Credits.setText(PlayerAgent.getCurrentBankRoll());  

		// TODO add your handling code here:
	}                                              

	private void FoldActionPerformed(java.awt.event.ActionEvent evt) {                                     
		JOptionPane.showConfirmDialog(null, "Are you sure you would like to fold?", "Careful now...", JOptionPane.YES_NO_OPTION);
	}                                    


	private void Player1Letter2ActionPerformed(java.awt.event.ActionEvent evt) {                                               
		// TODO add your handling code here:
	}                                              

	private void RaiseActionPerformed(java.awt.event.ActionEvent evt) {                                      

		String name = JOptionPane.showInputDialog(null, "How much are you raising?");
	}                                     

	private void CheckActionPerformed(java.awt.event.ActionEvent evt) {                                      
		JOptionPane.showMessageDialog(null, "You have checked");// TODO add your handling code here:
	}                                     

	private void AmtToBetActionPerformed(java.awt.event.ActionEvent evt) {                                         
		// TODO add your handling code here:
	}                                        

	/**
	 * @param args the command line arguments
	 */
	public static void main(String args[]) {
		/* Set the Nimbus look and feel */
		//<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
		/* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
		 * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
		 */
		try {
			for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
				if ("Nimbus".equals(info.getName())) {
					javax.swing.UIManager.setLookAndFeel(info.getClassName());
					break;
				}
			}
		} catch (ClassNotFoundException ex) {
			java.util.logging.Logger.getLogger(GUIScramble.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
		} catch (InstantiationException ex) {
			java.util.logging.Logger.getLogger(GUIScramble.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
		} catch (IllegalAccessException ex) {
			java.util.logging.Logger.getLogger(GUIScramble.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
		} catch (javax.swing.UnsupportedLookAndFeelException ex) {
			java.util.logging.Logger.getLogger(GUIScramble.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
		}
		//</editor-fold>

		/* Create and display the form */
		java.awt.EventQueue.invokeLater(new Runnable() {

			public void run() {
				new GUIScramble().setVisible(true);
			}
		});
	}
	// Variables declaration - do not modify
	private javax.swing.JTextField AmtToBet;
	private javax.swing.JButton Check;
	private javax.swing.JTextField FlopLetter1;
	private javax.swing.JTextField FlopLetter2;
	private javax.swing.JTextField FlopLetter3;
	private javax.swing.JTextField FlopLetter4;
	private javax.swing.JTextField FlopLetter5;
	private javax.swing.JPanel FlopPanel;
	private javax.swing.JButton Fold;
	private javax.swing.JTextField POT;
	private javax.swing.JTextField Player1Credits;

	private javax.swing.JLabel Player1Label;
	private javax.swing.JTextField Player1Letter1;
	private javax.swing.JTextField Player1Letter2;
	private javax.swing.JTextField Player1Letter3;
	private javax.swing.JPanel Player1Panel;
	private javax.swing.JTextField Player2Credits;

	private javax.swing.JLabel Player2Label;
	private javax.swing.JPanel Player2Panel;
	private javax.swing.JTextField Player3Credits;

	private javax.swing.JLabel Player3Label;
	private javax.swing.JPanel Player3Panel;
	private javax.swing.JTextField Player4Credits;

	private javax.swing.JLabel Player4Label;
	private javax.swing.JPanel Player5Panel;
	private javax.swing.JButton Raise;
	private javax.swing.JTextField WordToPlay;
	private javax.swing.JPanel jPanel1;
	// End of variables declaration
}
